﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TrackSystem.IO.Equip
{
    public enum EquipPartCatogery
    {
        SENSOR = 0,
        LOGIC,
        LOOP,
        SLAVE
    }
    /// <summary>
    /// 设备部件类
    /// </summary>
    public class EquipPartAttr
    {
        /// <summary>
        /// 部件类别
        /// </summary>
        public EquipPartCatogery Catogery { get; set; }
        /// <summary>
        /// 部件名称
        /// </summary>
        public string? Name {  get; set; }
        /// <summary>
        /// 部件描述
        /// </summary>
        public string? Description { get; set; }
        /// <summary>
        /// 部件使能状态
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 部件状态
        /// </summary>
        public bool Status { get; set; }
    }
}
